package com.kefu.sys.vo;

import cn.hutool.core.bean.BeanUtil;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import com.kefu.sys.model.SysTenant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "租户")
public class SysTenantUpdateVo extends AbstractUpdateVo<SysTenant, String> {
    @ApiModelProperty(name = "tenantName", value = "公司名称")
    private String tenantName;
    @ApiModelProperty(name = "tenantStatus", value = "状态：0停用，1启用")
    private Integer tenantStatus;
    @ApiModelProperty(name = "tenantIcon", value = "图标")
    private String tenantIcon;
    @ApiModelProperty(name = "contactName", value = "联系人姓名")
    private String contactName;
    @ApiModelProperty(name = "contactEmail", value = "联系人邮箱")
    private String contactEmail;
    @ApiModelProperty(name = "contactTel", value = "联系人电话")
    private String contactTel;
    @ApiModelProperty(name = "tenantSecret", value = "密钥")
    private String tenantSecret;
    @ApiModelProperty(name = "versionId", value = "版本id")
    private String versionId;

    @Override
    public SysTenant convert() {
        SysTenant info = BeanUtil.toBean(this, SysTenant.class);
        return info;
    }

}